from barrelhouse.core.ssl_certificates.models import ssl_certificate
from django.contrib import admin

class ssl_certificate_admin(admin.ModelAdmin):
	list_display = ('name', 'certificate_authority', 'issue_date', 'expire_date',)
	ordering = ('-expire_date',)
	list_filter = ('expire_date', 'certificate_authority')
	search_fields = ('name', 'issue_date', 'expire_date')
	save_on_top = True

admin.site.register(ssl_certificate, ssl_certificate_admin)
